package com.xinzhidi.web.equipment.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 存档恢复记录UpdDto对象 equipment_archives_restore
 *
 * @author ruoyi
 * @date 2023-07-21
 */
@ApiModel(value = "存档恢复记录UpdDto对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class EquipmentArchivesRestoreUpdDto {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @NotNull(message = "主键id不能为空")
    @Min(value = 0, message = "主键id不能比0小")
    private Long id;

    @ApiModelProperty(value = "存档类型1小区2楼栋3单元")
    @NotNull(message = "存档类型1小区2楼栋3单元不能为空")
    @Min(value = 0, message = "存档类型1小区2楼栋3单元不能比0小")
    private Long type;

    @ApiModelProperty(value = "阀门开度")
    @NotNull(message = "阀门开度不能为空")
    private BigDecimal valveOpen;

    @ApiModelProperty(value = "小区id")
    @NotNull(message = "小区id不能为空")
    @Min(value = 0, message = "小区id不能比0小")
    private Long plotId;

    @ApiModelProperty(value = "楼栋id")
    @NotNull(message = "楼栋id不能为空")
    @Min(value = 0, message = "楼栋id不能比0小")
    private Long buildId;

    @ApiModelProperty(value = "单元id")
    @NotNull(message = "单元id不能为空")
    @Min(value = 0, message = "单元id不能比0小")
    private Long unitId;

    @ApiModelProperty(value = "存档时间")
    private Date archivesTime;

}
